Skip to content

UOD-421: Update README and remove legacy hCaptcha, Castle and Temu request types - #57

Merged
DZaznobin93 merged 6 commits into
mainfrom
UOD-421
Nov 20, 2026
Merged

DZaznobin93 merged 6 commits into
mainfrom
UOD-421

Conversation

@djaga-ru

Copy link
Copy Markdown
Collaborator

Updates the Python SDK README for UOD-421 and removes legacy request types. Covers the supported captcha types table, client configuration, error handling and polling, and the solution cost.

1. Supported captcha types table - README.md

  • removes request classes that do not exist in the package: RecaptchaV2EnterpriseProxylessRequest, GeeTestProxylessRequest / GeeTestRequest, ImpervaCustomTaskProxylessRequest, BinanceTaskProxylessRequest
  • documents optional minScore (0.1-0.9) on reCAPTCHA v2 Enterprise; adds reCAPTCHA v3 Enterprise, FunCaptcha, custom anti-bot tasks and FunCaptchaComplexImageTaskRequest
  • every class is cross-checked against the package exports and the official API task list

2. Client configuration and balance - README.md

  • new Client Configuration section: api_key, service_url, client_timeout, default_soft_id, client_proxy with defaults taken from the code
  • Quick Start example 3: checking the balance with get_balance()

3. Error handling and polling - README.md

  • new Error Handling section: the exception hierarchy, TimeoutError and per-type polling timeouts

4. Legacy request types removal - capmonstercloud_client/, test/, examples/

  • removes hCaptcha, Castle and Temu request types (absent from the official API task list) with their tests and examples

5. Solution cost - README.md

  • documents the cost field merged into the solved dictionary (USD)

Commits:

  • Fix supported captcha types table in README
  • Document ClientOptions and get_balance() in README
  • Document error handling and polling timeouts in README
  • Add FunCaptchaComplexImageTaskRequest to the complex image row
  • Remove legacy hCaptcha, Castle and Temu request types
  • Document solution cost in README

Stats: 16 files changed, 83 insertions(+), 877 deletions(-).

The table listed request classes that do not exist in the package and
missed several supported ones. Cross-checked every class against the
actual exports of capmonstercloudclient.requests and the API task list.

- Remove non-existent classes: RecaptchaV2EnterpriseProxylessRequest,
  GeeTestProxylessRequest / GeeTestRequest,
  ImpervaCustomTaskProxylessRequest, BinanceTaskProxylessRequest
- Use real exported names: GeetestRequest, RecaptchaV2EnterpriseRequest,
  ImpervaCustomTaskRequest, BinanceTaskRequest
- Document optional minScore (0.1-0.9) on RecaptchaV2EnterpriseRequest
- Add missing supported rows: reCAPTCHA v3 Enterprise, FunCaptcha,
  RecognitionComplexImageTaskRequest and a custom anti-bot tasks row
  (Tspd, Hunt, Friendly, TenDi, Basilisk, Alibaba, Altcha, MTCaptcha,
  Yidun, Prosopo)
- hCaptcha, Castle and Temu request classes are not listed: those task
  types are absent from the official API task list
Client configuration and balance checking were implemented but not
described anywhere in the README.

- Add Quick Start example 3: checking the account balance with
  get_balance()
- Add a Client Configuration section describing every ClientOptions
  field: api_key, service_url, client_timeout, default_soft_id and
  client_proxy (ClientProxyInfo; http/https for the API connection,
  task proxies are set per request object)
Exceptions and polling behaviour were implemented but not described in
the README.

- Add an Error Handling section: every exception raised by the client
  (BaseError subclasses, http.client.HTTPException, builtin
  TimeoutError), the situation that triggers each one and a
  try/except example
- Describe automatic getTaskResult polling with per-type settings:
  delay before the first request, polling interval and maximum waiting
  time (e.g. up to 180 s for reCAPTCHA tasks, 10 s for image-to-text);
  unsolved tasks are not charged
The class exists in the package but the complex image row of the
supported types table did not list it (the Node.js README already
does).
These task types are absent from the official API task list and the
team approved removing them.

- Delete the HcaptchaRequest, HcaptchaComplexImageTaskRequest,
  CastleCustomTaskRequest and TemuCustomTaskRequest modules with their
  tests and examples
- Drop the types from the solve_captcha / _solve unions, the
  _instance_config table and the REQUESTS exports list
- Delete getHcaptchaTimeouts, getCastleTimeouts and getTemuTimeouts
- Remove the HCaptcha case from requests_generation_test

Note: removing public classes is a breaking change for package
consumers. The version is intentionally left untouched here; the
version bump and release are a separate team decision.
The ready getTaskResult response now exposes the price of the solved
task; solve_captcha merges it into the returned dictionary.

- Show the cost field in the Quick Start example
- Note the USD price of a solution in the polling and timeouts section
@djaga-ru djaga-ru self-assigned this Nov 19, 2026
@djaga-ru djaga-ru added bug Something isn't working documentation Improvements or additions to documentation labels Nov 19, 2026
@djaga-ru
djaga-ru requested review from DZaznobin93 and evgeniykornev and removed request for DZaznobin93 and evgeniykornev November 19, 2026 16:04
@DZaznobin93
DZaznobin93 merged commit 92561e0 into main Nov 20, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants